/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface;

import javax.swing.Icon;
import javax.swing.JPanel;

/**
 *
 * @author tuareg
 */
public class Pestana {

    public Pestana(JPanel panel){
        this.panel = panel;
    }

    public Pestana(JPanel panel, String nombre) {
        this(panel);
        this.nombre = nombre;
    }

    public Pestana(JPanel panel, String nombre, Icon icono) {
        this(panel, nombre);
        this.icono = icono;
    }

    public Icon getIcono() {
        return icono;
    }

    public String getNombre() {
        return nombre;
    }

    public JPanel getPanel() {
        return panel;
    }


    private JPanel panel;
    private String nombre;
    private Icon icono;
}
